package com.zheng.redpacket.server.serivce;

import com.zheng.redpacket.server.dto.RedPacketDto;

import java.math.BigDecimal;
import java.util.List;

public interface RedPacketHandlerService {
    //记录发红包时红包的全局标识、随机金额列表和红包个数到数据库
    public void recordRedPacket(RedPacketDto dto, String redId, List<Integer> list);

    public void recordRobRedPacket(Integer userId, String redId, BigDecimal amount) throws Exception;
}
